package day1129_4;

public class A3 {
    public static void main(String[] args) {
        double[]  ds={3.3,   5.7,   8.4};
        double sum=0;
        double  max=0;
        for(int i=0;i<3;i++){
            sum=sum+ds[i];
            if(ds[i]>max){ max=ds[i];  }
        }
        System.out.println(sum/ds.length+"最大值："+max+"");
    }
}








